from flask import Flask, jsonify
import redis

app = Flask(__name__)
db = redis.Redis("192.168.200.203")


@app.route("/require_homework")
def index():
    print(db.hgetall("data"))
    result_dict = db.hgetall("data")

    return result_dict

if __name__ == "__main__":
    app.run(port=8000)
